
import 'Definition.dart';

class NoticeModel extends Definition {
  
	/// 编号
	int? id;
	/// 标题
	String? title;
	/// 内容
	String? content;
	/// 类型
	String? type;
	/// 目标编号 - 用户ID、分组ID
	int? target_id;
	/// 链接地址
	String? link;
	/// 消息发送者
	int? user_id;

  @override
  Map<String, dynamic> toJson() {
    return {
			"id": id,
			"title": title,
			"content": content,
			"type": type,
			"target_id": target_id,
			"link": link,
			"user_id": user_id,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		id = json["id"];
		title = json["title"];
		content = json["content"];
		type = json["type"];
		target_id = json["target_id"];
		link = json["link"];
		user_id = json["user_id"];
  }
  
}
  